package com.dxy.chatserver.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class EsConfig {

    @Value("${es.indexName}")
    private String indexName;

    @Bean
    public String indexName(){
        return indexName;
    }
}
